package com.itheima.util;

import com.itheima.config.OssTemplate;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

@SpringBootTest
public class OssTemplateTeest  {
    @Autowired
    private OssTemplate ossTemplate;
    @Test
    public void test() throws FileNotFoundException {
        FileInputStream fileInputStream = new FileInputStream("D:/codes/1111.png");
        ossTemplate.upload("1111.png",fileInputStream);
    }
}
